package com.xio.cloud.service.fallback;

import com.xio.cloud.service.PaymentFeignService;
import org.springframework.stereotype.Component;

/**
 * @Author: xio
 * @Description: 服务端异常类
 * @Date: 2020/10/2 17:36
 */
@Component
public class PaymentFallbackService implements PaymentFeignService {
    @Override
    public String paymentInfo_OK(Integer id) {
        return "- - - PaymentFallbackService:paymentInfo_OK 方法调用失败，请稍后再试。";
    }

    @Override
    public String paymentInfo_TimeOut(Integer id) {
        return "- - - PaymentFallbackService:paymentInfo_TimeOut 方法调用失败，请稍后再试。";
    }

    @Override
    public String paymentCircuitBreaker(Integer id) {
        return "- - - PaymentFallbackService:paymentCircuitBreaker 方法调用失败，请稍后再试。";
    }
}
